/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package imarkchat;

import MessageIO.SocketMessageManager;
import ichatGUI.ClientGUI;
import java.net.UnknownHostException;

/**
 *
 * @author Mark
 */
public class Client {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws UnknownHostException
        {
//        if (args.length == 0)
//            throw new IllegalArgumentException("No IP Address input");
        ClientGUI clientGUI = new ClientGUI(new SocketMessageManager(
                args[0]));//All clients connect to this ipaddress
        clientGUI.setSize(400, 400);//set window size
        clientGUI.setResizable(false);//disable resizing
        clientGUI.setVisible(true);//show window
        }

}
